package dt.day01;

public class Bus extends MotoVehicle {

    private int seatcount;

    public Bus() {

    }

    public Bus(String brand, int seatcount) {
        super(brand);
        this.seatcount = seatcount;
    }

    public Bus(String no, String brand, int seatcount) {
        super(no, brand);
        this.seatcount = seatcount;
    }

    public int getSeatcount() {
        return seatcount;
    }

    public void setSeatcount(int seatcount) {
        this.seatcount = seatcount;
    }

    @Override
    public double calMoney(int days) {
        double rent=0;
        if(this.seatcount>16){
            rent=days*1500;
        }else{
            rent=days*800;
        }
        return rent;

    }
}
